package com.hiwhitley.himei.contract.model;

import com.hiwhitley.himei.contract.GankContract;
import com.hiwhitley.himei.entity.GankDay;
import com.hiwhitley.himei.entity.RequestParams;
import com.hiwhitley.himei.network.RetrofitFactory;
import com.hiwhitley.himei.network.service.GankService;

import rx.Observable;

/**
 * Created by hiwhitley on 17-3-3.
 */

public class GankModel implements GankContract.Model{

    private GankService gankService;

    public GankModel() {
        gankService = RetrofitFactory.getGankService();
    }

    @Override
    public Observable<GankDay> getGankDay(int year, int month, int day) {
        return gankService.getGankDay(year, month, day);
    }
}
